/**
 * 
 */
package com.javacore;

/**
 * @author Chung
 * @date - 7:42:18 PM Jul 23, 2013
 * @filename Exercise2.java
 */
public class Exercise2 {
	private static final float HeSoLuong = 2.0f;
	private String Ma = "";
	private String Ten = "";
	private String NgayVaoLam = "";
	private static float LuongCoBan = 0.0f;

	public static float TinhLuong(float Luong) {
		Luong = LuongCoBan * HeSoLuong;
		return Luong;
	}

	public void DataEntry(String S1, String S2, String S3, float l) {
		Ma = S1;
		Ten = S2;
		NgayVaoLam = S3;
		LuongCoBan = l;
	}

	public void OutData() {
		System.out.println(Ma + ",\t " + Ten + ",\t " + NgayVaoLam + ",\t "
				+ LuongCoBan + ",\t " + HeSoLuong + ",\t\t "
				+ TinhLuong(LuongCoBan));
		System.out.println("");
	}

	public static void main(String[] args) {
		System.out
				.println("Ma,\tTen,\t\tNgay Vao Lam,\tLuong Co Ban,\tHe So Luong,\tTong Luong(= LuongCoBan * He So Luong)");
		System.out.println("");
		Exercise2 nv1 = new Exercise2();
		Exercise2 nv2 = new Exercise2();
		Exercise2 nv3 = new Exercise2();

		nv1.DataEntry("NV001", "ChungND", "10/10/2010", 500000);
		nv2.DataEntry("NV002", "AnhPT  ", "11/11/2011", 500000);
		nv3.DataEntry("NV003", "ManhDB ", "12/12/2012", 500000);

		nv1.OutData();
		nv2.OutData();
		nv3.OutData();
	}
}
